package com.uenpay.oem.util.route;

import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;
import com.uenpay.util.net.retrofit.UenException;

/**
 * Created by liulou on 2017/5/3.
 * desc:
 */

public class ActivityRouteUtil {

    /**
     * 根据交易类型封装数据并跳转界面
     *
     * @param name
     */
    public static void routeByTradeTypeName(Context context, String name) {
        switch (name) {
            case "即时到":
            case "普通收款":
                ARouter.getInstance().build("/pos/enteramount").navigation(context);
                break;
            case "付款码":
                break;
            case "扫一扫":
                break;
            case "提现":
                break;
            case "手机充值":
                break;
            case "余额查询":
                break;
            default:
                throw new UenException("该功能模块没有设置对应跳转事件！");
        }
    }
}
